#include <iostream>
#include <cmath>
#include <iomanip> 
using namespace std;
int main(){
	int t;
	cin>>t;
	while(t--){
		int n;
		cin>>n;
		double sum=10000;
		while(n--){
			double a;
			cin>>a;
			sum=sum+sum*a/100;
		}	
		cout<<fixed<<setprecision(2)<<sum-10000<<endl;
	}	
}
